<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>adminer后台管理系统</title>
<link href="<{$APP_PUBLIC_PATH}>images/css.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<{$APP_PUBLIC_PATH}>javascript/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){ 
		$("#main_big").slideToggle("slow");
		
});
</script>
</head>
<body style="background:#FFF">
<iframe name="get" style="display:none;"></iframe>
<div id="main_big" style="display:none">产品管理</div>
<div id="main_daohan" style="display:none;">
  <ul>
    <li class="main_d1"> <a></a> </li>
  </ul>
</div>
<div id="main_contents">
<div id="search">
  <form id="form2" name="form2" method="post" action="?m=Product&a=product_search" style="float:right;">
    <input type="text" name="search" id="search_text" />
    <input type="submit" name="search_button" id="search_button" class="main_get" value="搜 索" />
  </form>
</div>
  <div id="main_description">描述：产品管理</div>
  <script type="text/javascript">
$(document).ready(function(){ 
				$("#form1").slideDown("slow"); 		   
        $(".main_table tr").mouseover(function(){
                $(this).addClass("over");}).mouseout(function(){
                $(this).removeClass("over");}) 
        $(".main_table tr:even").addClass("alt");
			$('.show_m').click(function(){
				var pid = +$(this).find('.pid').html();
				$.ajax({
					type: 'POST',
					url: '?m=Product&a=ajax_product_show',data: 'pid='+pid+'&show_m='+$(this).find('.show_me').html(),
					dataType:'json',
					success: function(json){
					$('#c' + pid).html(json.show);
					$('#s' + pid).html(json.value);
					}
				});
			});
			$('.show_newsproduct').click(function(){
				var pid = +$(this).find('.pid').html();
				$.ajax({
					type: 'POST',
					url: '?m=Product&a=ajax_product_newsproduct_show',data: 'pid='+pid+'&show_m='+$(this).find('.show_me').html(),
					dataType:'json',
					success: function(json){
					$('#newsproductc' + pid).html(json.show);
					$('#newsproducts' + pid).html(json.value);
					}
				});
			});
			$('.show_specialproduct').click(function(){
				var pid = +$(this).find('.pid').html();
				$.ajax({
					type: 'POST',
					url: '?m=Product&a=ajax_product_specialproduct_show',data: 'pid='+pid+'&show_m='+$(this).find('.show_me').html(),
					dataType:'json',
					success: function(json){
					$('#specialproductc' + pid).html(json.show);
					$('#specialproducts' + pid).html(json.value);
					}
				});
			});
});
</script>

  <form id="form1" name="form1" method="post" target="get" action="?m=Product&a=product_delete" style="display:none;">
    <div id="table_c">
      <table border="0" cellspacing="1" class="main_table">
        <tr>
          <th width="30" align="center">删</th>
          <th width="50">产品ID</th>
          <th>产品名称</th>
          <th>分类</th>
          <th>品牌</th>
          <th>发布时间</th>
          <th>编号</th>
          <th>描述</th>
          <th>尺寸</th>
          <th>单位</th>
          <th>价格</th>
          <th>最新</th>
          <th>促销</th>
          <th>是否显示</th>
          <th>编辑</th>
        </tr>
        <if condition="!empty($product)">
          <volist name="product" id="vo">
            <tr>
              <td width="30" align="center"><input type="checkbox" name="del[]" id="del" value="<{$vo.product_id}>"></td>
              <td><{$vo.product_id}></td>
              <td><{$vo.title}></td>
              <td><{$vo.sortid|sortname}></td>
              <td><{$vo.brand}></td>
              <td><{$vo.time|date="Y-m-d H:i:s",###}></td>
              <td><{$vo.No}></td>
              <td><{$vo.overview}></td>
              <td><{$vo.sizes}></td>
              <td><{$vo.units}></td>
              <td><{$vo.price}></td>
              
              <td class="show_newsproduct" style="cursor:pointer;"><span class="pid" style="display:none;"><{$vo.product_id}></span><span id="newsproducts<{$vo.product_id}>" class="show_me" style="display:none;"><{$vo.newsproduct}></span>
                <span id="newsproductc<{$vo.product_id}>" class="show"><if condition="$vo.newsproduct eq 1">是<else /><font color="#FF0000">否</font></if></span>
                </td>
                
              <td class="show_specialproduct" style="cursor:pointer;"><span class="pid" style="display:none;"><{$vo.product_id}></span><span id="specialproducts<{$vo.product_id}>" class="show_me" style="display:none;"><{$vo.specialproduct}></span>
                <span id="specialproductc<{$vo.product_id}>" class="show"><if condition="$vo.specialproduct eq 1">是<else /><font color="#FF0000">否</font></if></span>
                </td>
                
              <td class="show_m" style="cursor:pointer;"><span class="pid" style="display:none;"><{$vo.product_id}></span><span id="s<{$vo.product_id}>" class="show_me" style="display:none;"><{$vo.show_m}></span>
                <span id="c<{$vo.product_id}>" class="show"><if condition="$vo.show_m eq 1">是<else /><font color="#FF0000">否</font></if></span>
                </td>
              <td><a href="?m=Product&a=edit&pid=<{$vo.product_id}>">[详细]</a></td>
            </tr>
          </volist>
          <else />
          <tr>
            <td colspan="15">当前没有任何记录</td>
          </tr>
        </if>
      </table>
      <div id="page"><{$page}></div>
      <input onclick="return confirm('确定删除?')" type="submit" name="button" id="button" class="main_get" value="提  交" />
    </div>
  </form>
</div>
</body>
</html>